package com.lcz.mobilesafe.activity;

import android.app.Application;
import android.content.Context;

import com.yolanda.nohttp.Logger;
import com.yolanda.nohttp.NoHttp;


/**
 * Created by hp on 2017/1/18.
 */

public class BaseApplication extends Application {
    private static BaseApplication application;

    @Override
    public void onCreate() {
        super.onCreate();
        application = this;
        //NoHttp初始化
        NoHttp.initialize(this);
        Logger.setTag("mobilesafe");
        Logger.setDebug(true);// 开始NoHttp的调试模式, 这样就能看到请求过程和日志
    }

    public static Context getApplication() {
        return application;
    }

}
